package com.egghiro.framework.j2se.factory;

public class ImplementationFactory {

    public static <T> T create(Class <T> intefaceClazz, String implementationClassName) throws ClassNotFoundException, InstantiationException, IllegalAccessException{
//        Class<?> implementationClazz = Class.forName(implementationClassName);
        
        return intefaceClazz.cast(Class.forName(implementationClassName).newInstance());
    }

}
